﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimCMS.Repository;
using SimCMS.Model;

namespace SimCMS.Manager
{
    public class SimobjattrManager : ISimobjattrManager
    {
        public IRepository<Simobjattr> SimobjattrRepository { get; set; }

        public object Save(Simobjattr entity)
        {
            return this.SimobjattrRepository.Save(entity);
        }

        public void Delete(object id)
        {
            this.SimobjattrRepository.Delete(this.Get(id));
        }

        public Simobjattr Get(object id)
        {
            return this.SimobjattrRepository.Get(id);
        }

        public IList<Simobjattr> LoadAll()
        {
            return this.SimobjattrRepository.LoadAll();
        }

        public void Update(Simobjattr entity)
        {
            this.SimobjattrRepository.Update(entity);
        }
    }
}
